package org.chen.common.scene.task;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
@Schema(description = "景点搜索请求参数")
public class GrabRequest {
    @Schema(description = "城市名称",
            example = "成都",
            defaultValue = "成都",
            requiredMode = Schema.RequiredMode.REQUIRED)
    private String cityName;

    @Schema(description = "景点关键词",
            example = "九寨沟",
            defaultValue = "九寨沟",
            requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    private String keyword;

    @Schema(description = "页码",
            example = "1",
            defaultValue = "1",
            requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    private Integer pageIndex = 1;

    @Schema(description = "每页数据量",
            allowableValues = {"10", "20"},
            defaultValue = "10",
            example = "10",
            requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    private Integer pageSize = 10;
}
